package inventory.daoImplementer;

import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;

import inventory.daoInterface.IssueSlipItemDao;
import inventory.model.IssueSlipItem;
import dbhandelling.Crude;

public class IssueSlipItemImplementor extends Crude implements IssueSlipItemDao
{

	@Override
	public void add(IssueSlipItem issueitem) throws SQLException 
	{
		String[] values=new String[3];
		values[0]=issueitem.getmCode();
		values[1]=issueitem.getRequiredQuant()+"";
		values[2]=issueitem.getIssueQuant()+"";
		values[3]=issueitem.getSlipNo()+"";
		insert("IssueSlipItem", values);		
	}

	@Override
	public void update(IssueSlipItem issueitem) {
	
		
	}

	@Override
	public void delete(IssueSlipItem issueitem) {
		this.delete("IssueSlipItem", "mCode", issueitem.getmCode()+"");
		
	}

	@Override
	public IssueSlipItem retreive(String conditionField, String ConditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IssueSlipItem[] retreiveArray(String conditionField,
			String ConditionValue) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public IssueSlipItem[] retreiveAll() {
		// TODO Auto-generated method stub
		return null;
	}

	
}
